package com.gilgamesh.mall.sdk.bean.product;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * 商品详情信息
 * @author peiyao
 * @date 2021-01-11 11:27:37
 */
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Data
@TableName("t_product_detail")
public class ProductDetailEntity implements Serializable {


	private static final long serialVersionUID = 2482917776075591954L;
	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 商品唯一表示
	 */
	private String skuCode;

	private String title;

	private String showTitle;
	/**
	 * 商品类别标识
	 */
	private String productCode;
	/**
	 * 购物车描述
	 */
	private String shoppingCartDescription;
	/**
	 * 创建时间
	 */
	@JsonFormat(timezone = "yyyy-MM-dd")
	private Date createTime;
	/**
	 * 原价，不超过10的12次方
	 */
	private BigDecimal originalPrice;
	/**
	 * 现价
	 */
	private BigDecimal currentPrice;


	private String typeName;

}
